add unit test for cache lib
add tests for binary caching