Added tests for ResultSet.php