Now instantiating MainClass in NEW, RELEASE and RETAIN-tests