[test] Pass the correct parser to the `sendsAndReceivesTest` function
[minor] Remove unused variable declaration