add write_console_test and change init to gfs_init