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