Respect test=True in mount state.

Closes #12286
Merge pull request #12347 from cachedout/12286

Respect test=True in mount state.