Remove json dependency in tests