Added eunit tests.