wrap new class test around main function