tests using the longitudinal impedances script and some bugs fixed, now
it seems to work properly