SwModelTestBase: add a getShapeByName() method

Change-Id: Ie3b7099aea1d473cca88c4904683234408920100