Fix tests to work with javascript (PATH INSTEAD OF URL)