Add tests for notes and chapters controllers