recorderendpoint: add memory leaks tests

Change-Id: I234c080a086de659803447bdeaaf9c2ab2564e6e