Added method to get the first or the last row in table on class GenericCRUDModel and unit tests for it