add test for minor bug and fix it
fix minor issue with unknown events causing crash