fixed up some errors in the tests and added helper for title