Checkpoint: unit test, create new file

Added unit test and create new checkpoint.txt if it does not already
exist