add enable and disable sharing to test api