implemented unit tests for all Miner functions