Test using repository