fix karma setup and webpack config to work properly with sinon
finish action unit tests
dispatcher tests