added pages controler
fix have_selector method for testing
use layout apliction
use layout apliction
added test for non-blank body tag