tests: Fix wrong truncate in config tests.