implement integration tests