Fix mocha version in Gemfile
Add tests for nodes controller
Add tests