Added tests.cpp