Sets NODE_ENV to 'testing' when running tests.
Updated the testing tasks for consistency.