add some edge case testing

looked at code coverage and found some untested situations.