Added functional tests for thread pagination.