Fix Gruntfile and add tests to build-rails