selection tests, fixes to toggle selection bugs