updated test-all infrastructure
and minor edits to test-math.R