Fixes to mount state.

Fixing the mounted function in the mount state to ensure that a forced umount doesn't happen when test=True Per #16536