adding tests for issue #37