Added Test cases and parse with options for Document