Unit testing course repository