added tests to row gateway