Add test code and code for getting and setting start and end date for courses