Add config and rmr UTs back, fix exception memory free

No match.