Some tests for https://github.com/saltstack/salt/pull/6039