#386 Improved check for existence of state related textColor and fixed test script which caused the errorr