modified the test function for testSetCell