Fix failed Erlang tests for problems 13,17.