Raise IOError instead of a string
Add support config for pytest.cov
Prepare for travis operation