- Added test CreateCustomEvents.
- Corrected errors.