Add unit test for #_getSqlQueryForRowsWithoutOID() helper method