added test cases for goto