fix process metadata
fix tests