fixed issue in index file from unit test
added testcase for ticket 2703
partally solved ticket https://issues.jboss.org/browse/RAILO-2703