checkpoint, writing tests