expand unit tests

added more unit tests for DBManager, and fixed issues with Add, and
Remove.