A test for restful api's in erlang