Added testFailure and testTCPString test cases