Removed test_metadata_link. Modified error message for clarity when scope is top level assembly. Added tests for error messages from different scopes.