Added and fixed the all unit tests.