Added tests and tweaks for update method.
Added coveragerc