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