implement code coverage

already ~85%!