Added simple unit test for caching
Integrated with Travis-CI