Normalize file path method and tests