Refactir dao tests