Fixed issue with mockery.

Signed-off-by: crynobone <crynobone@gmail.com>