Tests for db manager