add tests for clearForReuse