adapt test fixtures
Merge pull request #228 from aplanas/master

Minor fixes
Replace the assert with _fix_local_cache()