test setting and unsetting of override