See #641.
Fixed unit test.