New tests for db manager