do proper unit testing for bfgminer module