dao layer, tests for dao layer