behave: fixed pagination scenario; added helpers for json length