Update test, fix error detection