added a jasmine test suite for pagination