Fixed bugs of resume & stop in test mode

resume & stop must be inactive in test mode