extended testcase 2605
https://issues.jboss.org/browse/RAILO-2605