Add tests for selecting components