added jasmine given and refactored the tree data converter test