Check if email and audience parameters are actually present
Added unit test for the http handlers