Fix unit tests

`path.join` is a varargs function and joins all arguments. The `map` call passes
index and full array as further arguments.

Test Plan:
all jasmine tests pass