Recast sanity test as a HUnit test, to silence Jenkins

--HG--
extra : amend_source : 6cdc037629abaf671826365ec2f784bd45693ba3