test and document checkbox behaviour