I would chek here for `self.params.get('test', False)) ` instead of passing it as an argument.