#125 cleanup
- Linting
- Replaced safe json to another package
- Added tests for test dispatch, mainly for coverage