add helper spec and improve static pages spec