added tests for correct functioning of hub.wake()