Test of how repository works