Add tests for issue 492.