made the task asynchronous
updated tests -- to be moved to mocha tests
updated path to new spec path