Some tests for DynamicDao

Here is some tests for DynamicDao