generic dao test