Unit testing for hce