Enable email action, add tests