remove, remove_if and tests