added test for toString method