made some changes to cowcopy sys call and also to the test case