use common style for spec tests

* use 2-space soft tabs instead of hard tabs
* fix indents
* remove trailing whitespace