Simplify the unit testing in the math_function_test.
Created by: qingqing01
The math_function_test.cc
and math_function_test.cu
are used to test the functions in math_function.h
. The former is used to test CPU implementation and the later is used test GPU implementation. There are some duplicated codes.