Fixing the mounted function in the mount state to ensure that a forced umount doesn't happen when test=True
Merge pull request #16550 from garethgreenaway/16536_forced_umount_with_test

Fixes to mount state.