tests for name and email