added test for parsing a row
changd parse row to work with states