repairs unit tests