test_fail: copy reason string

Fix #1.