migrate tests to supertest