Added tests to ResultTest and ResultSetTest