Refactor transaction status tests (bug 1024751)