per-test log files

Reviewer: @wilmo119

Based on an idea from InCNTRE's fork. CC @jonstout