Fixed all unit tests, karma is green.