remove hardcoded url.  add more end to end tests.