Fixing .applyEventFor test