[system] Fix soctec test to not block indefinitely
[system] Add test for #25137
[system] Replace System.Collections.Generic from reference sources