test to write in console