add unit tests for checkbox