use process browser shim
added some tests