added: tests for adding child conventions and for toJSON function