add accept() and close() to the test