added test for string parsing method