Added tests for the detail view.