Support locally defined path for adapter and fix tests