Switch assertEquals parameters to make error messages correct
Store errorText also when retrying same state after failure