Added tests and slightly updated code for convenience
Merge some of remote-tracking branch 'paksv/addTests' into unittests

* commit 'ee7538e03a76dbacb5599ed19810ae9b99605f13':
  Added tests and slightly updated code for convenience
Fix some formatting from the last merge
Add configuration for maven surefire plugin
Cleanup formatting and assign groups to some tests
Add a test for hex encoding performance