Fixed assertMethodCall method