Fixing creation of methods and tests