TEST: Tests pages retrieval from the datbaase.