Properly split up tests to make them work

The test.done() call was made too early and therefore the test didn't
check the second test run.
Add test for invalid script paths
Fix buggy script path test