Fix the --ivy-report option and add integration test