introduced unit-test for toJSON