Modified tests to check correct metadata dict updates, modified as_meta ...

...to correctly update the metadata dict.

I noticed that some data was missing in a project when it was not defined in _metadata and found this bug.