[Backport Unit Tests] Platform/Extensions unit tests
Merge pull request #1273 from brendan-lynch/5.0-extensions

[Backport Unit Tests] Platform/Extensions unit tests