Fix test case. Internally the test case is using Class.getMethods() whic...

...h returns an array without any guarantee on the order of the methods