test case for the ownership checking