Added first bunch of unittests.