add unit tests for the recording module