use mock to fix leaky payments test