test function subtraction