Add mock to test requirements

[skip ci]