selection-by-id: add throw check in test.