test wrapper for cmd and amd