Fix test leaky handling of the CONFIG attribute