test config writing