Fix ECW loading and tests