Refactor JCR integration test