NOJIRA: fixed test failure on jboss cache and resource leak