added testmain