Runs a function against given inputs and tests the result against baseline outputs