Add test error for setOptions