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