increase test coverage

Added two tests to cover some cases that were not being tested for.