testing: rename ifstate-test to cstate-test

Rename and fix to allocate&free default global config (required due to default save destination changes).