Fixed unit tests and karma setup