Introduce unit tests for the Repository
Make the unit tests run with rake