Add test for mapnik token substitution

The test checks that the tokens are substituted on the frontend
while talking with SQL api but NOT substituted when talking with
the MAP api.