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