refact test to ensure history are deleted even without filter parameter