Added tests for inDomain
Fixed test failures relating to inDomain