Note: as I am developing simpletests, it is not hard. I found one thing which was not trivial: to uncheck a checkbox set it to FALSE, nothing else (unset, NULL etc) works.