test(plug-in): use browser-unpack for assertions

This strengthens some assertions and fixes #34.