initialising miner class in test.py