write a real test; cleanup