restored previous email notification & wrote demographic test