Add tests for removeallformat