Fixed gulpfile to handle async testing and server not closing for tests