Improve test result logging, enable statement logging, add option to restart test from ui