dyna: use 'wt' mode in write to avoid test to fail, may need revision