Added tests to CDArray