fix bug and update on unit test for recorder (working)