added test for parse method