refractor(tests): use a()/an() for typeof expectations