Removed broken tests and updated usercache. Fixes deprecated code.

I'll write the new tests (#8) as part of #2.