Cacheing tests now make sure that logged in users don't cause pages to cache. Also fixed creating a logged in session automatically in the mock environment.
Write a bunch of unit tests and mark some of them as pending.