test dao code