fixes test for older versions of Erlang