TOS service handler: fixed wrong test.