Adding unit tests (via CPPUnit).