Fixes to courseware/tests/test_views