Fix tests
Trim trailing slashes on path