added test cases for detail view, index view, and was_published recently