Declare parse_mode in utils.h to allow testing it
Add a test case for parse_mode