added eunit tests