Added test for medium operating_system

Please review it
Thanks
The factory creates and get the info for the created entity, so you don't need to check if that exists as the factory already does that. so lines 110-115 could be removed. Also the factory returns the created entity, so you can get the created medium changing line 107 to `medium = make_medium({'name': name})`