[fix] test define file not created in current working path