Add error computation to test cases
Add error computation to test cases