Refactor EntityPerPageBuilder and test

minimizes database usage in these tests

Change-Id: Ic48599263b94d0f31cf641f9a62b6e194b2cfde1
update travis

Change-Id: Ib08743b10175e1feccd822edeb06f601d7cfbd26