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