tests: add some unit tests for ANNOUNCE and RECORD