added tests for PR #74