Add unit tests for the `set_logtalk_flag/2` built-in directive