Tests: properly report test results, fix sandboxing