test.tcl: added proc apply_config and added compare operation to proc xassert