implemented run, publish and subscribe integration tests