Added test for rm