unit test coverage on detail route