add a test for Subject
refactor coursera script