Test macros: Initial tests for escaping of macros

This tests escaping and url-encoding of some macros

This doesn't test all macros, but the functionality of escaping.

Signed-off-by: Max Sikström <msikstrom@op5.com>