test clearing