added endprocess() call in testcase