added 'CANCEL' message support + unittests
added WaitForByeOk state + unittests