fix test code and finish create a bid