Add unit tests for i18n library

In fact, move the existing examples that reside in a comment so
that they can be run.

To execute, execute in the toplevel directory: (phpunit must be installed)
$ phpunit .