add test, clearing memory