Bug/signatures in browser

Fixes signature / verification on the browser. Test added.