write tests for DetailView