Tests for domains