PSA: More improvements to the test script

In projects started with sealious playground, there has recently been some instability around tests. I’ve identified some causes and fixed them in the latest master branch. If you encounter problems, merge the latest master branch and run npm install && npm run install-test-deps.

From now on, please don’t skip tests - if something fails in tests, please let me know :muscle: