refactored gulp test to expose some useful globals