add spec for invalid page title
refractor and move steps