test writing in parallel