[UniTests] Change assertType for assertInstanceOf

(cherry picked from commit c42c16b046e17dad2743d38b78bf6990e5db0816)