Fixed manager cache.
Added missing tests for test case.
Merge pull request #13 from Zylius/case_test

Elasticsearch test case fixes.