Fix #551: add tests for the operator module and fix the typing declarations