refactored static_pages tests