tests: Added mock methods to tests for testing without access to ES.

Signed-off-by: Joe MacMahon