add pagination headers
added pagination test