improved cover coverage with tests, and added support for names on passed parameters.