testcase for tucket https://issues.jboss.org/browse/RAILO-2856