Added unit test to reproduce #67.
Fixed formatting.
Fixed #67.