fixes a test issue and adds test for what gets set as default mode