fix domain bug + better domains tests
2.0.0