Update tests, fix cache_if_anonymous decorator to decode Unicode correctly