added constructor to TestClass