added dynamic collection test
added dynamic collection example