Converted controller spec to use sinon.js mocks and stubs.