Add unit test for utils.dynamic (closes #1)