[PATCH v2 0/7] Overhauling amx_test