Added tests for the browse methods

Added tests for the browse methods. One of the first times I've written tests for angular packages, so you might want to check them for consistency. 

```npm test``` runned without errors.