Add test for initialization of ws_hotkey_event

Checks for duplicate code