Use unittest.mock because mocker does not work in python 3.4