Making jms tests more robust