Added a test for scanning classes for clones.
More tests for more situations.