Email working, tests failing