Testing the effects of a method call