wrote new tests and refactored old tests for static_pages