Programme is now calculating errors on test cases