fix domain test problem