modify test configuration in order to use localhost instead of specified ip
 refactoring around the way to shutdown our producer/consumer in order to avoid some dead lock