test for constant memory usage
cleanup