Automated tests for the root-finding algorithm