Changed tests to use mock and changed repository dependency resolution to require READ instead of EXECUTE