Issue #163: Convert test variables to state system.

This converts the "drupal_test_email_collector" variable to the state system, preventing problems with e-mails that are sent containing entity-objects (blocks https://github.com/backdrop/backdrop-issues/issues/155).