Fix failure travis CI#44

Ther is not 'open' command on linux, so mocking is using anything().