Style fixes

* Use private readers.
* Don't use let and before in tests.
* Sort import list alphabetically.
* Fix line breaking and lack of parentheses.