Wrote test for js.execute(List<String> files)

Now this fixes bug: 3427