Fix Math tests Firebird

This removes the FIXME comments from the Math test suite, together with #992