Make RestHelper interface compatible with package testing