fixed and improved tests for resolve cache command