add test for dynamic attribute creation

#22 added dynamic attribute creation.  This adds a test for it.