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