add test for writing assets