add some tests

- add chrome api stub file
- simplify module export