A rapid test for identification of autonomous folding units in proteins