update config and index for a test