added test for rebootinstances