Feat/alex wan/tests

missing to_json