Add tests for valid and invalid detector options.