added unit test to ensure that 'setOption' is not called if no advanced options are defined.