Changed the working of the alias function. Aliases should now start with
'%{' and end with '}'. This change makes it possible to combine aliases
with other aliases and/or text.
Also added tests for this functionality and updated current alias test
cases.