add some tests, fix things

pulls in all the unit tests from classifier. rest of tests are in branch `db-tests` awaiting postgresql automation.