HAMA-681: add the test case for model reading and writing