tests: Prepare framework for shadow master tests

Change-Id: I0bc588c0ac4c3920e39e93c6043dec8dfa765ec9