Make testrecorder optional