Added unit tests for new metadata.
Fixed missing type= in kraus conversion.