@erobinson noticed a bug in formatting page parameters

This adds several tests to ensure that different arguments format the
parameters appropriately.