Fix issue #175 : redirect default index files to /
Add tests. Fix bug found by tests.