tests: remove the use of request module