Added more tests for error tolerance.

Most parts from the error tolerance are covered and working now.