Changed Mockery mock creation logic