tests passing for returning array of dependencies