Added HasEvent test