serialize interface & more test cases