Fix building media sharing tests (#389)

* Add media_sharing to cmakes

* Adjust cases to ADD_TEST macro

* Review fixes
5 files changed