Add spec tests for CoursePurchase. Add some views.