Changed test to use expect instanceOf