fixed an integrity problem with the ProjectManager tests caused by the Project Switching feature. Essentially, we did not have a clean database to work with before each test. Added a call to deleteAll() on the ProjectManager as a part of the set up.
Applied a bugfix to the Basic Authentication system where it expected superfluous "Authentication: " header prefix. Switched the tests to match this.