rewrite similar tests with operator module
add test helper