Refactored ComponentBase occupied bits implementation to set of indices. ComponentBase mocks in tests as well.
Merge with refactoring.