Updated README about testing
Added encoding attribute to mock to fix tests