Added test case for NULL domains
Fixed length of domain setting
Merge pull request #665 from hintjens/master

Added test case for NULL domains