[master] Added unit tests.