Fix main class test method