new test and change of logic in error handling