Added unit and integrational tests for pagin and sorting, updated View