PR with some unit tests for web worker support mentioned in #144.