MDL-39020 phpunit: Rename incorrect filename

Rename externallib_tests.php to externallib_test.php
Fix failing unit tests