Respect test=True in mount state.

Closes #12286