Add is_absolute_path function and tests