tests: Add test_shadow_synchronization

This test verifies if the shadow master is able to start from
a non-empty metadata file and apply any changes after starting.

Change-Id: I01c92243a3f79ef2a8ae0d265d3178e0c6f82fcf