added code coverage tests