added tests for detail page