s4/test: Refactor test_opendomain to address following