test: erase, write and print in between