Add tests and html for dynamic page titles