fix grunt file and tests for builds