More wait signal tests
some classes renamed to more suitable name
added new cancelalarm for the case that a wait with timout gets a signal and must cancel the timeout alarm