Compatibility fixes for Octave
Add 3rd order unit test to testsuite