Finalize for test