add tests for issue #49