Kafka Flow Packs: Fix change instances logic

- Fix the immutable map issue
- Make the change transactional
- Added new tests
- Added log4j-over-slf4j as dependency
Sleep for a while; no more messages should be processed