Add tests for reading complex objects as options.