seg fault on caen, add test cases