Failing tests for #1 - delete & insert.
Pass metadata along to constructor. Fixes #1.