test case toString method.