Add tests for Detail view.