Travis build status image link fix
Moved offset function from test util to source because it's now used in source
Merge pull request #3 from adam-lynch/automate-unit-tests-with-travis

Moved function from test util to source as per usage