test writing to a list allocated in a loop: fail