Unit tests for DAO