Repository controller
Added more tests and method implementations