detail view unit test