Add test for the apimocked.