Test setup and repository