unit test for recording