Attempt to fix test failures on CI

This commit is an attempt to fix the build failures with the HornetQ
tests and relates to #1034