converted tabs -> spaces
added test coverage.