add test for returning a row type