add a server-side test using supertest--partial work for #1