[TIMOB-11869] Added a bunch of unit tests.