add cache invalidation command
Fix failing test
mock in test
split tests