Add Navbar unit tests

Also:
- Introduce sinon and sinon-chai
- Move unit test boilerplate code to setup script