Added test cases to Erlang driver