moving tests from cdmlib to the test project