test code for easydao.