pagination logic done, but tests all broken until updated