Tests for a,A and a minor bug fix for cursor position after A.