Added automated tests using CTest.