fix toISOString test to be correct
cover cases for long paths