Fixes for unit tests. Added phpunit.xml to simplify running tests. For
some reason the cache tests aren't working.