Adding tests for checking email was sent given configuration