test cases, cleanup