Refactored Static_pages spec tests; added a utilities file