testing for number of errors added to tests. Cleaned up test code