MDL-40402 unittests: Make sure get_system_context() throws a deprecated warning
MDL-40402 libraries: Deprecate get_system_context()