Fixed Travis-CI tests by setting git user in tests for travis environment