units tests are being added to PR #1217 for this method and others.  This can either be merged separately or part of PR #1217