test of methods related to email