Correct unit test assertion for XHR object