Fixed a problem with eunit test cases.