tests: Make tests independent of locale settings.
Support iteration over packages installed by the user.
Support printing of package names.
Add "history userinstalled" command (RhBug:884615)