fix unit tests for bitname_db