Add some tests for the new metadata editor