Adds setChecked method and a few more tests.