test case for removing zero elements