Removed unused method

Removed unused method from the test cases.