Fixes the constructor to work with tests

kpmartin
Fixes tests

creates a fake network request so the tests run
kpmartin