fix test at 64bit environment
add NSURL support