Added constructor to testClass