* fixed JSON serializability problem
* modified paginate test to accurately test new pagination