fixes test when compiled and run with JDK 1.7, method order is different, and we only want non generated methods (bridge method)