added testcase for 3087
https://issues.jboss.org/browse/RAILO-3087