[domains] fix errors in tests