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
Merge pull request #4 from kassens/testfix

Fix unit tests