Start and stop eunit server

When running eunit tests, take care of
starting and stoping eunit server.
Code simplifications in `check_module_name'