add tests for freeze