[FOLD] shared_handler constraints and tests