Moved several tests from testclass.cpp to testconstructors.cpp, fixes test failure introduced recently.