Tests added
Changed so that set encodes data in json + added dep