remove nested function test cases