fix test for built in classes in class visitor