renamed test dirs
fixed incorrect offset computation