Added unit tests and exception for when start date is after end date