added pagination link offset; fixed pagination tests