Binary DB tests for db_manager
Move stuff into shared test header
Tests for db_manager read/save error cases