create Test Class
divide classfile and mainfile