MDL-46051 mod_lti: Fixing errors in unknown_service_api_called class

Also adding unit tests.
MDL-46051 mod_lti: Not enough data passed to lti_extend_lti_services