improved test script, results as dict