[PATCH 0/4] Add extra checkings to amx_test