update the usage of domain module in test cases