add tests for issue #48