Add repository and tests