GH#53 Fixed use of endpoints.  Unit test fails - convert to integration
test