adding tests for PR #29