Fix incorrect method call.

Add tests.