Change fs layout of local caching to avoid potential conflicts between repos.
Fix init tests
Fixed all test cases.