fix bug in gruntfile.js template and update filter spec