replacing test dependency on C extension with existing stub