add tests for issue #50