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