add test for application error