add more elaborate config unittest