Added unit tests for back-end repos