create getRow function for test driver class