Tests for controllers.js