add grunt connect. fix tests on null