made tests and added functionality for getCheckpoint