[#ARCH-66 Added Tests in Query Service]

Fixed test issues with Jboss 7