add integration tests for ap and images home pages and ap and images detail pages