Add mathematical formulae tests