Implemented test case case1002.cc