Instead of testing the context in _search_domain_active, it is simpler to set the active_test default value using the transaction context.