fixed test coverage and result summary and added tests