added test case code