update test to check error result