modified loadNpmTasks to work with string and array of strings, added tests for array input