refactor order hash test