now using CuTest unit-test framework for testing