speed up tests almost 2x by using hash lookup for method names