WIP: test suites and functional code for repos