Add 2 new functions and appropriate tests for functions.

The two new functions are: getNumComponentsWithSequence in
BaseComponentContainer and getComponents in BaseSystem.