fix test and misspelled word
add ViewRow tests, moved module code to relevant classes