Added method to check whether email was sent. Reworked regitration test. #66