added testcase for 2974
solved ticket https://issues.jboss.org/browse/RAILO-2974