Added Document->getOptions() tests and fixed typo