fix test case. Internally the test case is using Class.getMethods() which returns an array without any guarantee on the order of the methods