mmc_test: use API to check card type