Added test remove-operatingsystem,update for medium

please review it
thanks
better to use `assertNotIn`