I've added the code to my crontab, but how I can make sure that It's actually working?
You can check to see if it's working or not by looking at /var/log/syslog file.
For example here's mine. As you can see it shows (smmsp) as a user who executed it and other useful information (e.g. executed at)