Test fix

This PR should fix the failing unit tests
- pass local flag when looking for github token
- add simple token config test

To be tested with [SCC-merge-test](http://hudson.openmicroscopy.org.uk/view/Mgmt/job/SCC-merge-test/)