Put the type test in the same it block