Added constructor to class test.