Change to `be_an_instance_of` as per @brixen's feedback.