Fixed typo and added tests for `$` movement in empty lines.