Added tests for lineq and maxmin