tests: use supertest

closes #1021