Fixe bidcount.
Fixed problems with tests.