adding a test for constructor.
Merge branch 'fix-chebfun-domain' of https://github.com/chebfun/chebfun into fix-chebfun-domain