Fixed bug in gruntfile

caused tests to fail when timing was off.
Tests will now wait until server outputs specific text.