added tests for changing options object