Improves tests by removing puts and explicitly asserting errors aren't raised