altered vote query and added mailer test for variable