app: fixed stop test.
app: improved start to change the unit state.