User data functions correctly

* Added tests for Bulk and Invoice token generation.
* Removed unnecessary tests
* Fixed user data encoding by using standard json encode

Command: #EG-3164 Fixed