mussel,test: fix error handling.