Added spec for instanceOf