Unit test for clear_args