Adding 'branches' section to the travis config file so that only master is tested. [ci skip]
Tidying up the structure of the example directives tests.