[tests] Tidy up receivedby.py