Fix typo, %t -> %r

`invoke test` fails sometimes due to #1374