LIVEOAK-530 Provides is not properly updated when a script is updated
 - Clear the list of provided methods before updating based on a new script
 - Add tests to verify provides property