eunit tests for sc_server