This test requires a course with a teacher enrolled in it.
1) As the teacher add a file (pdf,odt or similar) to the course and call it Course contract.
2) Navigate to Course administration>Reports>Event monitoring rules and add the following:
*Name -Course contract view
*Plugin type -File
*Select and view - Course module viewed
*Choose your own description/frequency and message template and save.
3)Now,still in the same course, navigate to My profile settings>Event monitoring. Verify you see "Rules you can subscribe to" and the event you just created.
4)From the 'Select' dropdown, choose Course contract.
5) Verify you get the message "Subscription successfully created"