Add tests for missing code coverage