Added more unit tests and code coverage tool.