addition of test_if_object_cd_exists method in cd_test.py