add unit tests for jsonify method