Update for #1249 - Added a test for the --deactivate option

The test looks right, the code works - yet the test fails. Any idea why?