Fix minor bugs add tests for course import. improve popup confirmation