Improvements to logging and test system