fix cache.increment, added tests

in addition to that, weird things happen with coverage when test cases have the same name..... go figure. Anyway, the coverage for cache.py is now up to 61% vs 29%.