Fix for empty value and more tests, for #1347
- a@b.com/ is invalid.
- a@b is invalid.
- Add test for valid case (a@b.com).