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