test using repository