segregated testcases in test40.140

Testcase 40.140
You could remove the the unused code from here.