Added constructor to testclass