[BUGFIX] Replace deprecated assertType in unit tests