migrated test to grunt/mocha/chai