ERT-460: Added write test for gen_kw_export_file to gen_kw_test.c