Improved integration test: Added refresh to avoid conflict exceptions