Add setOption tests