MDL-40431 libraries: added another PHPUnit test to ensure deprecated function returns the same as the replacement