repos models and basic tests