add testcase for 3045
solved ticket https://issues.jboss.org/browse/RAILO-3045
Merge branch '4.1' into 4.2