add test for Error#cause

Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>