working error and test

deleted a line I added as a check