Fixed bug with the test relying on the order of a map.
Added delay to integration test to allow for message propogation.