modified loadNpmTasks to work with strings and arrays as an input, added unit tests