Fixed pagination pages variable to be proper Array
Created shouldRenderPage function to test page filtering logic
Added tests for shouldRenderPage