Add tests for stash