add testcase for 2957
solved ticket https://issues.jboss.org/browse/RAILO-2957