Lots of tests

ON-TICK and ON-KEY sections now have tests