[test] define G_APPROX_VALUE and EPSILON only when used

resolves -Weverything bot complain
1 file changed