fix Bid method; complete tests