add test
Create an object instance from a definition