Fixed copy constructors of config objects.
Test fixes.