erlang with test