Modified test and functionality to set page title