added several tests changed Repository so ids are long