add magic methods to mock class. uncomment line in spectrum module.