Undoing 7df4514f

The problem was when running unit tests with relative path. When run
as a module, there is no problem (this is all for travis integration).