Testing mock objects in travis ci