add tests for LocalCache