Modify tests in static_pages_spec and layout files