records: fix `test_error_catching`

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>