add course filter and corresponding test cases