Fixed ServiceLocator to work with tests

Signed-off-by: Shivansh Saini <shivanshs9@gmail.com>
8 jobs for !214 with unit_tests in 45 minutes and 23 seconds (queued for 5 seconds)
detached
Status Job ID Name Coverage
  Build
passed #299331
android debian
build-libvlc-arm64

00:21:17

passed #299332
android debian
build-libvlc-armv7

00:20:04

passed #299333
android debian
build-libvlc-x86

00:21:30

passed #299334
android debian
build-libvlc-x86_64

00:22:28

passed #299335
android debian
build-ml-arm64

00:23:55

passed #299336
android debian
build-ml-armv7

00:22:53

passed #299337
android debian
build-ml-x86

00:22:36

passed #299338
android debian
build-ml-x86_64

00:22:51