Test from caltojd example