added test that captures decoding error, refs #11