fixed setOptions & tests