[test][client] Use expect().to.be.a() instead of using instanceof