Unit test and fix for cache parser.