Almost completed unit tests for annc_db.js