Adding test=True ability to schedule module and state.

Adding test=True ability to schedule module and state.