Add functional test for repair api.