unit test update to detect error condition