initialization procedure modified ,erlang tests added