added tests and test coverage output