committed tests in testmain.cpp, finally.