[functions.spe10] raise a custom exception
[test.common] rewrote check_for_success()

Success was previously defined as the results being less or equal to the
expected results, which is not optimal. From now on it is checked whether
the expected result and the result (in scientific notation) are equal in
their first three meaningful digits.