made test methods for math bindings with 2 arguments generic to reduce code duplication