fix bug of local dependencies with a fragment and tail part
fix broken tests that use single quotes