[4.2] Tests : assertInstanceOf

Use `assertInstanceOf`