added test for check error