Updated to ignore events of unknown type and added tests accordingly