Added tests for carray