Add code coverage. Also added a test that was missing