Update to fix an issue with a previous commit

- Introduced a bug causing html/text attrs to always be blank
- Added tests to check event name html/text is not empty
- Removed creation of a new hash which caused issue
Update to use to_h to force params to be a hash

- Related to previous commit, this shoudl fix a few bugs that were
  introduced previously.