refactor tests - use bootstrap and phpunit configuration
fix one plural test case
add support for _("Text to be localized") for Smarty adapter (thanks to @pierre-r)