Add error handling in TestParseBSON.