The only way I can get this test to work is by adding
```
application:start(inets),
```
to setup(). After that this test works like a champ.