Reintroduce dependency on mock

mock is part of python' stdlib starting from version 3.3. We support 3.2
too, though.

Also, make sure tests run in travis environment.