Swift: set metadata properly
BAC-855: extend integration test