testing and code coverage added