Add simple tests for the _getComponents method.

This method needs heavy refactoring.  Let's start by identifying and
fixing its behaviour.
Turn autodeps and allowbrokencomponents into boolean options

For consistency with the other options.
Test dependency resolution among components.