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
add travis status image to readme
Merge pull request #4 from kassens/testfix

Fix unit tests