Add test for the generate_session_id function.

Closes seantis/seantis.reservation#58.