added tests for begin and end for course container