Pass bytes rather than a file to write
Test asset import/export roundtrip w/ lock setting.