add test for exposed errors