add test case and fix Loggable clone problem