Test case for sweep commands
Fixed bug detected by test case
Test running script