fix tests when no bsddb available, fix py3 tests