added res.locals tests and layout.html tests