Issue 998847 5

change the enabled state will call `updateAppFreeSpace` and `bundleUpdateAppFreeSpace`, therefore its needed to stub first