Fixed web.config for the test project and fixed a bug